<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ page session="true" %>
<script type="text/javascript">
$(document).ready( function() {			
	$("#cancelSubmit").click(function() {
		if($("#cancelReasonCode").val() == ""){
			alert("취소사유를 선택하세요.");
			$("#cancelReasonCode").focus();
			return;
		}
		if($("#cancelReasonText").val() == ""){
			alert("취소사유를 입력하세요.");
			$("#cancelReasonCode").focus();
			return;
		}
		$("#frm").submit();
	
	});
});
</script>
		
<!-- 콘텐츠 영역 -->
<div id="BodyWrap">
<section>
    <h4 class="pag_title" title="주문취소">주문취소</h4>
    <div id="ContentWrap4">
        <section>
        	<h5 class="hidtext" title="주문취소정보 입력">주문취소정보 입력</h5>
            <div class="item_buytitarea" title="주문취소정보">주문취소정보</div>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="item_callist" summary="구매자 정보내역">
            <form name="frm" id="frm" action="orderinfo_cancelproc.vh">
            	<colgroup>
                <col style="width:33%">
                <col style="width:67%">
                </colgroup>
                <tr>
                	<th>취소사유</th>
                    <td class="ta_l"><select name="cancelReasonCode" id="cancelReasonCode" class="item_option">
                            <option value="">취소사유를 선택해주세요.</option>
                            <c:forEach var="cr" items="${requestScope.selectCodeList}" varStatus="o">
                            <option value="${ cr.COMCD }">${ cr.CDNM }</option>
                            </c:forEach>
                        </select>
                    </td>
                </tr>
                <tr>
                	<th>사유입력</th>
                    <td class="ta_l"><textarea name="cancelReasonText" id="cancelReasonText" class="txtaa_wauto1"></textarea></td>
                </tr>
                <input type="hidden" name="ordno" value="${odrno}">
            </form>
            </table>

            <!--
            <div class="item_buytitarea" title="결제정보선택">결제정보선택</div> 
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="item_callist itcall2" summary="결제정보선택내역">
            	<colgroup>
                <col style="width:33%">
                <col style="width:34%">
                <col style="width:33%">
                </colgroup>
                <tr>
                	<th></th>
                    <td class="ta_c">결제</td>
                    <td class="ta_c">환불</td>
                </tr>
                <tr>
                	<th>쿠폰사용액</th>
                    <td>1,000원</td>
                    <td>1,000원</td>
                </tr>
                <tr>
                	<th>포인트사용액</th>
                    <td>0원</td>
                    <td>0원</td>
                </tr>
                <tr>
                	<th>배송비</th>
                    <td>0원</td>
                    <td>0원</td>
                </tr>
                <tr>
                	<th>상품금액</th>
                    <td>8,000원</td>
                    <td>8,000원</td>
                </tr>
                <tr>
                	<th>총 결제/<br>
                    	환불금액
                    </th>
                    <td>800원</td>
                    <td>800원</td>
                </tr>
            </table>
             -->
            <div class="item_buytitarea" title="환불예정금액">환불예정금액</div>
            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="item_callist" summary="환불예정금액 내역">
            	<colgroup>
                <col style="width:33%">
                <col style="width:67%">
                </colgroup>
                <tr>
                	<th>환불방법</th>
                    <td class="ta_l">${sStrSttlMethod}</td>
                </tr>
                <tr>
                	<th>환불예정금액</th>
                    <td class="ta_l">${apprvCancelPrc.REPRC3}원</td>
                </tr>
                <tr>
                	<th>환불예정금액포인트</th>
                    <td class="ta_l">${apprvCancelPrc.USECASHPT3}포인트</td>
                </tr>
            </table>
            <div class="btnposition_itembuy">
            	<div class="btnwline1_gray">
                	<a href="#" id="cancelSubmit" title="주문취소">주문취소</a>
                </div>
            </div>
        </section>
    </div>
</section>

<!--// 콘텐츠 영역 -->